import 'dart:convert';

class PagingList {
    final List<dynamic> list;
    final int count;

    PagingList({
        required this.list,
        required this.count,
    });

    factory PagingList.fromRawJson(String str) => PagingList.fromJson(json.decode(str));

    String toRawJson() => json.encode(toJson());

    factory PagingList.fromJson(Map<String, dynamic> json) => PagingList(
        list: List<dynamic>.from(json["list"].map((x) => x)),
        count: json["count"],
    );

    Map<String, dynamic> toJson() => {
        "list": List<dynamic>.from(list.map((x) => x)),
        "count": count,
    };
}
